home *** CD-ROM | disk | FTP | other *** search
- on enterFrame
- global Primero, Punto, Niv, Sala, TabRobot, TabRobE, TabTrayM, TabTrayO, TabTrayS, TabTrayT, TabTrayX, TabPotArmas, TabPotRobot, num_batalla, TabBatallas, EnMuerte
- if getAt(TabBatallas, 2) = 0 then
- set TabRobot to ["O"]
- set TabPotRobot to [5]
- set TabRobE to [22]
- set TabTrayO to ["A", "B", "C", "D", "E", "F"]
- set TabPotArmas to [1, 3, 7]
- set num_batalla to 2
- set EnMuerte to 1
- preLoad(label("inicio batalla2"), label("inicio batalla2"))
- go("inicio batalla2")
- end if
- end
-
- on exitFrame
- go(the frame)
- end
-
- on keyDown
- if the keyCode = 124 then
- puppetSprite(23, 1)
- set the castNum of sprite 23 to 2103
- derecha()
- else
- if the keyCode = 123 then
- puppetSprite(22, 1)
- set the castNum of sprite 22 to 2104
- izquierda()
- else
- if the keyCode = 126 then
- puppetSprite(20, 1)
- set the castNum of sprite 20 to 2102
- adelante()
- else
- if the keyCode = 125 then
- puppetSprite(21, 1)
- set the castNum of sprite 21 to 2101
- atras()
- end if
- end if
- end if
- end if
- end
-